<form action="${ctx}/sensitivewords/save" method="post" id="addSensitivewords" enctype="multipart/form-data">
		<div class="form-group form-inline row">
			<div class="col-sm-6">
				<label><span style="color: red">*</span>敏感词：</label>
				<input class="form-control" type="text" name="sensitiveWord" value="" maxlength="15"  id="sensitiveWord" />
				<span id="repeat"></span>
			</div>
		</div>
</form>

<script>
    $("#addSensitivewords").validate({
        rules:{
            sensitiveWord:{
                trimRequired:true
            }
        },
        messages:{
            sensitiveWord:{
                trimRequired:"请输入敏感词！"
            }
        },
    });
</script>
